package com.px.service;

import com.px.pojo.ShOrder;

import java.util.Map;

public interface PayService {

    //显示支付宝支付页面
    public String createAliForm(Integer orderId) throws Exception;

    //验签
    boolean validateAliPay(Map<String,String[]> requestParams) throws Exception;

    //判断交易记录表中是否有该订单的记录
    boolean validateDealPaySuccess(String orderNo) throws Exception;

    String dealPaySuccess(String orderNo,String tradeNo,Integer payMethod) throws Exception;

    String dealPaySuccessReFund(String orderNo,String tradeNo) throws Exception;

    ShOrder selectOrderByOrderNo(String orderNo) throws Exception;

    ShOrder selectOrderById(Integer orderId) throws Exception;

}
